/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.tms.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jeeplus.core.persistence.Page;
import com.jeeplus.core.service.CrudService;
import com.jeeplus.modules.tms.entity.Accident;
import com.jeeplus.modules.tms.mapper.AccidentMapper;

/**
 * 质量事故处理Service
 * @author 李超辉
 * @version 2017-12-06
 */
@Service
@Transactional(readOnly = true)
public class AccidentService extends CrudService<AccidentMapper, Accident> {

	public Accident get(String id) {
		return super.get(id);
	}
	
	public List<Accident> findList(Accident accident) {
		return super.findList(accident);
	}
	
	public Page<Accident> findPage(Page<Accident> page, Accident accident) {
		return super.findPage(page, accident);
	}
	
	@Transactional(readOnly = false)
	public void save(Accident accident) {
		super.save(accident);
	}
	
	@Transactional(readOnly = false)
	public void delete(Accident accident) {
		super.delete(accident);
	}
	
}